<script>
	export default {
		// 此处globalData为了演示其作用，不是uView框架的一部分
		globalData: {
			spread: 0,
			code: 0,
			isLogin: false,
			userInfo: {},
			MyMenus: [],
			windowHeight: 0,
			navHeight:0,
			navH:0,
			id: 0,
			isIframe: false,
		},
		onLaunch(option) {
			let that = this
			uni.hideTabBar()
			// 获取导航高度；
			uni.getSystemInfo({
				success: function(res) {
					that.globalData.navHeight = res.statusBarHeight * (750 / res.windowWidth) + 91;
				}
			});
			// 小程序获取头部高度
			// #ifdef MP
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
			that.globalData.navH = menuButtonInfo.top * 2 + menuButtonInfo.height / 2;
			// #endif
			// console.log('uid',option.query.hasOwnProperty('uid'))
			// that.$base.Tips({
			// 	title:'uid:'+option.query.hasOwnProperty('uid')
			// })
			if (option.query.hasOwnProperty('uid')) {
				let {uid}=option.query
				// console.log('uid111',uid)
				// that.$base.Tips({
				// 	title:'uid111:'+uid
				// })
				uni.setStorageSync('spread',uid)
				that.globalData.spread = uid
			}
		},
		mounted() {
			uni.hideTabBar()
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "common/demo.scss";
	@import "common/base.css";
	// @import "common/font/iconfont.css";
	@import "common/font/iconfont2.css";
	/* 公共样式 */
	.btn-box{
		margin-top: 48rpx;
		.btn-item{
			width: 280rpx;
			background-color: #53c9c2;
			border-radius: 24rpx;
			padding: 10px 20rpx;
			.icon{
				margin-right: 10rpx;
			}
		}
	}
	
</style>